package com.aionemu.gameserver.world;

import com.aionemu.gameserver.model.flyring.FlyRing;
import com.aionemu.gameserver.model.gameobjects.VisibleObject;
import com.aionemu.gameserver.utils.MathUtil;

public class FlyRingKnownList extends KnownList {
    public FlyRingKnownList(VisibleObject owner) {
        super(owner);
    }

    @Override
    protected boolean checkObjectInRange(VisibleObject owner, VisibleObject newObject) {
        FlyRing fr = (FlyRing) owner;
        if (MathUtil.isIn3dRange(owner, newObject, fr.getTemplate().getRadius() * 2)) {
            return true;
        }
        return false;
    }
}
